package com.ayf.payment.game.api.entity.platform;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "t_payment_channel")
public class PaymentChannel {
    /**
     * 自增ID
     */
    @Id
    @Column(name = "id")
    private Integer id;

    /**
     * 支付渠道编码
     */
    @Column(name = "code")
    private String code;

    /**
     * 支付渠道名称
     */
    @Column(name = "`name`")
    private String name;

    /**
     * 通道账户
     */
    @Column(name = "account_number")
    private String accountNumber;

    /**
     * 状态 0 不可用 1可用
     */
    @Column(name = "channel_flag")
    private Integer channelFlag;

    /**
     * 通道密钥
     */
    @Column(name = "channel_key")
    private String channelKey;

    /**
     * 通道公钥
     */
    @Column(name = "channel_public_key")
    private String channelPublicKey;

    /**
     * 平台公钥
     */
    @Column(name = "platform_public_key")
    private String platformPublicKey;

    /**
     * 平台私钥
     */
    @Column(name = "platform_private_key")
    private String platformPrivateKey;

    /**
     * 支付url
     */
    @Column(name = "payment_url")
    private String paymentUrl;

    /**
     * 同步支付url
     */
    @Column(name = "return_url")
    private String returnUrl;

    /**
     * 渠道类型 0普通 1分账
     */
    @Column(name = "channel_type")
    private String channelType;

    /**
     * 描述
     */
    @Column(name = "description")
    private String description;

    @Column(name = "create_time")
    private Date createTime;

    /**
     * 获取自增ID
     *
     * @return id - 自增ID
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置自增ID
     *
     * @param id 自增ID
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取支付渠道编码
     *
     * @return code - 支付渠道编码
     */
    public String getCode() {
        return code;
    }

    /**
     * 设置支付渠道编码
     *
     * @param code 支付渠道编码
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 获取支付渠道名称
     *
     * @return name - 支付渠道名称
     */
    public String getName() {
        return name;
    }

    /**
     * 设置支付渠道名称
     *
     * @param name 支付渠道名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取通道账户
     *
     * @return account_number - 通道账户
     */
    public String getAccountNumber() {
        return accountNumber;
    }

    /**
     * 设置通道账户
     *
     * @param accountNumber 通道账户
     */
    public void setAccountNumber(String accountNumber) {
        this.accountNumber = accountNumber;
    }

    /**
     * 获取状态 0 不可用 1可用
     *
     * @return channel_flag - 状态 0 不可用 1可用
     */
    public Integer getChannelFlag() {
        return channelFlag;
    }

    /**
     * 设置状态 0 不可用 1可用
     *
     * @param channelFlag 状态 0 不可用 1可用
     */
    public void setChannelFlag(Integer channelFlag) {
        this.channelFlag = channelFlag;
    }

    /**
     * 获取通道密钥
     *
     * @return channel_key - 通道密钥
     */
    public String getChannelKey() {
        return channelKey;
    }

    /**
     * 设置通道密钥
     *
     * @param channelKey 通道密钥
     */
    public void setChannelKey(String channelKey) {
        this.channelKey = channelKey;
    }

    /**
     * 获取通道公钥
     *
     * @return channel_public_key - 通道公钥
     */
    public String getChannelPublicKey() {
        return channelPublicKey;
    }

    /**
     * 设置通道公钥
     *
     * @param channelPublicKey 通道公钥
     */
    public void setChannelPublicKey(String channelPublicKey) {
        this.channelPublicKey = channelPublicKey;
    }

    /**
     * 获取描述
     *
     * @return description - 描述
     */
    public String getDescription() {
        return description;
    }

    /**
     * 设置描述
     *
     * @param description 描述
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getPlatformPublicKey() {
        return platformPublicKey;
    }

    public void setPlatformPublicKey(String platformPublicKey) {
        this.platformPublicKey = platformPublicKey;
    }

    public String getPlatformPrivateKey() {
        return platformPrivateKey;
    }

    public void setPlatformPrivateKey(String platformPrivateKey) {
        this.platformPrivateKey = platformPrivateKey;
    }

    public String getPaymentUrl() {
        return paymentUrl;
    }

    public void setPaymentUrl(String paymentUrl) {
        this.paymentUrl = paymentUrl;
    }

    public String getReturnUrl() {
        return returnUrl;
    }

    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }

    public String getChannelType() {
        return channelType;
    }

    public void setChannelType(String channelType) {
        this.channelType = channelType;
    }
}
